<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>爱贝儿医</title>
    <link rel="stylesheet" href="style/common.css?<?=版本?>">
    <script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="../app/js/common.js"></script>
</head>
<?php
    $openId=getCurrentUserOID();

    if(empty($openId)) exit('参数错误');

    $bm = new CUI数据中心(Page::b病历管理,$openId);
    $语音课程详情 = $bm->生成有效链接('Seller17Shipin_Lessons',$_GET['state']);

    $搜索 = "";
    if($_POST['标题']){
        $搜索['标题'] = $_POST['标题'];
    }
    $语音课程 = $bm->fc查找所有语音课程($_GET['page'],$_GET,$搜索,'视频');

    require_once __DIR__ . '/jssdk.php';
    $数据 = pdo()->selectColumns('public_serv_accounts',array('AppSecret','app_id'),array('id' => G_SERV_ID));
    $jssdk = new JSSDK($数据['app_id'], $数据['AppSecret']);
    $signPackage = $jssdk->getSignPackage();
?>

<body>
<div class="header"><div class="header_logo"><img src="style/logo_small.png" /><h1>课程列表</h1></div></div>
<div class="vedio_list">
    <ul>

        <?php
        foreach($语音课程['result'] as  $key=>$value){ ?>
            <li>
                <a href="<?= $语音课程详情.'&id='.$value['id']?>">
                    <dl>
                        <dt><img src="<?php if($value['头像']) echo $value['头像']; else echo "../img/default_avatar.jpg"; ?>" class="avatar" /></dt>
                        <dd><h1><?= $value['title']?></h1><div class="author"><?= $value['name']?></div><div class="time">授课时间：<?= $value['开始时间']?></div></dd>
                    </dl>
                </a>
            </li>

        <?php }?>

    </ul>
</div>



 <?= $语音课程['show'] ?>
</div>
<div style="width:100%;height:30px;"></div>
<div style="height:30px;width:100%;background:#db3655;color:#fff;font-size:80%;line-height:30px;text-align:center;position:fixed;bottom:0px;">操作过程中如有疑问，请致电客服热线：400-825-8989</div></body>

<script language="javascript">
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: [
            'onMenuShareAppMessage',
            'onMenuShareTimeline',
            'onMenuShareQQ',
            'onMenuShareWeibo',
            'onMenuShareQZone'
        ]
    });

    title = '爱贝儿医-爱课堂';
    desc = '爱贝儿医—专注于做儿科医生间学习工作交流平台。平台拥有数十位来自省级以上重点三甲医院的儿科专家、重点医院儿科学科带头人、国内儿科权威人士组成的豪华专家团队。';
    links = '';
    imgUrl = '<?= G_SITE_BASE ?>/business/img/logoRed2.png';
    weixinShare(title, desc, links, imgUrl);
</script>
</body>
</html>
